package org.example.cake.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.cake.entity.Themecake;

import java.util.List;

@Mapper
public interface ThemecakeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Themecake record);

    int insertSelective(Themecake record);

    Themecake selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Themecake record);

    int updateByPrimaryKey(Themecake record);

    /**
     * 查询所有主题蛋糕
     * @return 主题集合
     */
    public List<Themecake> selectAllTheme();

    /**
     * 根据id查询主题信息
     * @param id 主题id
     * @return 主题蛋糕对象
     */
    public Themecake selectById(@Param("id") Integer id);
}